Skip to content

Conversation

@jcouv
Copy link
Member

@jcouv jcouv commented Apr 19, 2025

Following LDM 2025-04-16

The extension marker is emitted with specialname and we require it for recognizing it from metadata.
Implementation methods are emitted without specialname. Note: I chose not to check that when loading from metadata.

We also confirmed that a marker method from metadata should not be recognized if more than 1 parameter.

Relates to test plan #76130

@jcouv jcouv added Area-Compilers Feature - Extension Everything The extension everything feature labels Apr 19, 2025
@jcouv jcouv self-assigned this Apr 19, 2025
@ghost ghost added the untriaged Issues and PRs which have not yet been triaged by a lead label Apr 19, 2025
@jcouv jcouv force-pushed the extensions-special branch from f859f22 to ce6fd8b Compare April 19, 2025 15:43
@jcouv jcouv marked this pull request as ready for review April 22, 2025 16:06
@jcouv jcouv requested a review from a team as a code owner April 22, 2025 16:06
@jcouv jcouv requested review from AlekseyTs and jjonescz April 22, 2025 16:12
!methodSymbol.ReturnsVoid ||
methodSymbol.ParameterCount != 1) // Tracked by https://github.com/dotnet/roslyn/issues/76130 : Should we accept more than one parameter (in case new versions add more info)?
methodSymbol.ParameterCount != 1 ||
!methodSymbol.HasSpecialName)
Copy link
Contributor

@AlekseyTs AlekseyTs Apr 22, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

!methodSymbol.HasSpecialName

It looks like this check is redundant, TryGetExtensionMarkerMethod checks for that.
#Closed

@AlekseyTs
Copy link
Contributor

Done with review pass (commit 1)

Copy link
Contributor

@AlekseyTs AlekseyTs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM (commit 2)

@jcouv jcouv merged commit 9dfd97c into dotnet:main Apr 23, 2025
24 checks passed
@jcouv jcouv deleted the extensions-special branch April 23, 2025 15:03
@dotnet-policy-service dotnet-policy-service bot added this to the Next milestone Apr 23, 2025
@RikkiGibson RikkiGibson modified the milestones: Next, 18.0 P1 Aug 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area-Compilers Feature - Extension Everything The extension everything feature untriaged Issues and PRs which have not yet been triaged by a lead

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants